-- Viral Resistance - T-Engine 4 Module
-- Copyright (C) 2010 Mikolai Fajer
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
--
-- Mikolai Fajer "yufra"
-- mfajer@gmail.com

newChat{ id="first",
	text = [[#LIGHT_GREEN#The elevator panel is right in front of you.]],
	answers = {
		{"#LIGHT_BLUE#Basement", condition=function(npc, player)
			return not player:hasQuest("power_loss") or player:isCompleted("power_loss")
		end,
		action=function(npc, player)
			game:changeLevel(0, nil, true)
		end},
		{"#LIGHT_BLUE#Floor 1", condition=function(npc, player)
			return not player:hasQuest("power_loss") or player:isCompleted("power_loss")
		end,
		action=function(npc, player)
			game:changeLevel(1, nil, true)
		end},
		{"#LIGHT_BLUE#Floor 2", condition=function(npc, player)
			return not player:hasQuest("power_loss") or player:isCompleted("power_loss")
		end,
		action=function(npc, player)
			game:changeLevel(2, nil, true)
		end},
		{"#LIGHT_BLUE#Floor 3", condition=function(npc, player)
			return not player:hasQuest("power_loss") or player:isCompleted("power_loss")
		end,
		action=function(npc, player)
			game:changeLevel(3, nil, true)
		end},
		{"#LIGHT_BLUE#Walk away."},
	}
}

return "first"